package com.ujson.uaa.persistence;

import com.ujson.base.persistence.BaseDo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

@Data
@ApiModel("权限表")
@Entity
@Table(name = "t_permission")
public class PermissionDo extends BaseDo {

    @ApiModelProperty("父级权限")
    @Column(name = "parent_id")
    private Long parentId;

    @ApiModelProperty("英文名称")
    @Column(name = "enname")
    private String enname;

    @ApiModelProperty("权限资源url")
    @Column(name = "url")
    private String url;

}
